<%@ page import="ingresso.Evento" %>



<div class="fieldcontain ${hasErrors(bean: eventoInstance, field: 'nome', 'error')} required">
	<label for="nome">
		<g:message code="evento.nome.label" default="Nome" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="nome" required="" value="${eventoInstance?.nome}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: eventoInstance, field: 'data', 'error')} required">
	<label for="data">
		<g:message code="evento.data.label" default="Data" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="data" precision="day"  value="${eventoInstance?.data}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: eventoInstance, field: 'dataEncerramento', 'error')} required">
	<label for="dataEncerramento">
		<g:message code="evento.dataEncerramento.label" default="Data Encerramento" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataEncerramento" precision="day"  value="${eventoInstance?.dataEncerramento}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: eventoInstance, field: 'valor', 'error')} required">
	<label for="valor">
		<g:message code="evento.valor.label" default="Valor" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="valor" value="${fieldValue(bean: eventoInstance, field: 'valor')}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: eventoInstance, field: 'descricao', 'error')} required">
	<label for="descricao">
		<g:message code="evento.descricao.label" default="Descricao" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="descricao" required="" value="${eventoInstance?.descricao}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: eventoInstance, field: 'categoria', 'error')} required">
	<label for="categoria">
		<g:message code="evento.categoria.label" default="Categoria" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="categoria" name="categoria.id" from="${ingresso.Categoria.list()}" noSelection="${['null':'Selecione uma Categoria...']}" optionKey="id" optionValue="descricao" required="" value="${eventoInstance?.categoria?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: eventoInstance, field: 'cidade', 'error')} required">
	<label for="cidade">
		<g:message code="evento.cidade.label" default="Cidade" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="cidade" name="cidade.id" from="${ingresso.Cidade.list()}" noSelection="${['null':'Selecione uma Cidade...']}" optionKey="id" optionValue="nome" required="" value="${eventoInstance?.cidade?.id}" class="many-to-one"/>
</div>

